package com.yehuishou.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yehuishou.dao.PartnerDao;
import com.yehuishou.pojo.Partner;
import com.yehuishou.service.PartnerService;

@Service
public class PartnerServiceImpl implements PartnerService {

	@Autowired
	private PartnerDao partners;
	
	@Override
	public List<Partner> findAll() {
		return partners.findAll();
	}

	@Override
	public void add(Partner partner) {
		partners.add(partner);
	}

	@Override
	public int dele(Integer id) {
		return partners.dele(id);
	}

}
